.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
 
 
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;} 
/* End hide from IE-mac */
 
*:first-child+html .clearfix{min-height: 1px;} /* for IE7 */